package com.eml.service.entity;

public class User {
    private Integer userId;//用户编号
    private String userName;//用户名
    private String userPassword;//用户密码
    private Integer age;//用户年龄
    private boolean userGender;//用户性别
    private String userPhone;//用户电话

    public User() {
    }

    public User(String userName, String userPassword, Integer age, boolean userGender, String userPhone) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.age = age;
        this.userGender = userGender;
        this.userPhone = userPhone;
    }

    public User(Integer userId, String userName, String userPassword, Integer age, boolean userGender, String userPhone) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.age = age;
        this.userGender = userGender;
        this.userPhone = userPhone;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public boolean isUserGender() {
        return userGender;
    }

    public void setUserGender(boolean userGender) {
        this.userGender = userGender;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", age=" + age +
                ", userGender=" + userGender +
                ", userPhone='" + userPhone + '\'' +
                '}';
    }
}
